package com.cloudeye.logtest.com.cloudeye.logtest.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.event.EventPublishingRunListener;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * Created by lafangyuan on 2020/10/22.
 */
@Configuration
public class TestEvent implements ApplicationListener<ApplicationEvent> {

    private static final Logger logger = LoggerFactory.getLogger(TestEvent.class);
    @Override
    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        logger.debug("Test Event");
    }



}
